# 导入 pyexpress 模块
import pyexpress as express

# 对象暴露
__all__ = ['router']

router = express.Router()

@router.get('/get')
def _(req, res, next):
    print(req.body)
    res.send('/hello/get')

@router.post('/post')
def _(req, res, next):
    print(req.body)
    res.send('/hello/post')